import json


def success(msg):
    json_info = {"code": 0, "info": "OK", "msg": msg}
    return json_info


def error(code, info):
    json_info = {"code": code, "info": info}
    return json_info

